<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>商品明细</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <link rel="stylesheet" href="../../../css/wx/mui.min.css">
    <link rel="stylesheet" href="../../../css/wx/app.css"/>
    <link rel="stylesheet" href="../../../css/wx/style.css"/>
    <link rel="stylesheet" href="../../../css/wx/style-hn.css"/>

    <script type="text/javascript">
        var pageConfig = {
            jss: ["app/gwat171_1/spmx"]
        };
    </script>
    <script data-main="../../../js/wx/public/config" src="../../../js/require.js"></script>
    <style>
        .mui-content {
            padding: 0;
        }

        .mui-content > .mui-table-view:first-child {
            margin-top: 0;
        }

        .mui-content > div {
            width: 100%;
        }

        .address-box > li {
            height: 100%;
        }

        .content-center {
            position: relative;
            flex: 1;
            margin-top: 0 !important;
        }

        .content-center .mui-card-footer:before {
            height: 0;
        }

        .content-center .mui-checkbox {
            width: 1.173333rem;
        }

        .mui-card-footer {
            padding: 0;
        }

        .mui-slider-handle.wf-slider-handle {
            width: 100%;
            display: flex;
        }

        .mui-slider-handle.wf-slider-handle .mui-checkbox {
            width: 28px;
            height: 28px;
            margin-right: 5px;
            margin-top: 13px;
        }

        .mui-slider-handle.wf-slider-handle .mui-checkbox input[type=checkbox] {
            right: 0;
            top: -13px;
        }

        .mui-table-view .mui-media-object {
            max-width: 65px;
            height: 65px;
        }

        .mui-slider-handle.wf-slider-handle a .mui-card-footer {
            min-height: inherit
        }

        .mui-table-view > li {
            border-bottom: 1px solid #dadada;
        }

        .footBtn {
            position: relative;
        }

    </style>
</head>

<body>
<div class="mui-content mui-fullscreen flex-container-v bg-color-wihte wf-yxsjxd">
    <div class="content-center ">
        <div id="scroll1" class="mui-scroll-wrapper">
            <div v-if="GWBHACTI=='S'" class="opBg" @tap.stop="showmsg"></div>
            <div class="mui-scroll">
                <gwc-listitem :model="items"></gwc-listitem>
                <gwcold-listitem :model="itemsOld"></gwcold-listitem>
            </div>
        </div>
    </div>

    <div id="contentFooter" class="footBtn flexl shadow2">
        <div style="flex: 1;" class="footBtn-count-left">
            合计：
            <span id="num">￥{{countAmount | priceFMT}}</span>
        </div>
        <button type="button" @tap.stop="okOrder" class="wf-pulic-bg edit" style="width: 30%;">返回</button>
    </div>

</div>

<script id="cartitem-template" type="text/x-template">
    <ul class="mui-table-view" id="OA_task_1">
        <li v-for="(val,index) in model" class="mui-table-view-cell mui-media">

            <div class="mui-slider-handle wf-slider-handle">
                <a @tap.stop="showDetail(val)" href="javascript:;" style="flex: 1;">
                    <div class="imgBox">
                        <img :src="val.GWAM015 | goodsImgsUtils">
                    </div>
                    <div class="mui-media-body wf-price-color">
                        <h4>{{val.GWAML003}}</h4>
                        <div class="mui-card-footer">
                            <p class="wf-sfont-color">￥{{val.GWAP100 | priceFMT}}<span>/{{val.GWAM008|goodsUnits}}</span></p>
                            <div class="mui-numbox">
                                <button @tap.stop="minus(val)" class="mui-btn mui-numbox-btn-minus" type="button">-
                                </button>
                                <input v-model="val.GWCM003" class="mui-numbox-input" type="number"/>
                                <button @tap.stop="plus(val)" class="mui-btn mui-numbox-btn-plus" type="button">+
                                </button>
                            </div>
                        </div>
                    </div>
                </a>
            </div>
        </li>
    </ul>
</script>
<script id="cartitemold-template" type="text/x-template">
    <ul class="mui-table-view">
        <li v-for="(val,index) in model" class="mui-table-view-cell mui-media">
            <div class="mui-slider-right mui-disabled">
                <a class="mui-btn mui-btn-red" @tap.stop="deleteDetail(val,$event)">删除</a>
            </div>
            <div class="mui-slider-handle wf-slider-handle">
                <!--<div class="mui-checkbox">-->
                <!--<input v-model="val.ischecked" :true-value="'1'" :false-value="'0'" type="checkbox">-->
                <!--</div>-->
                <a @tap.stop="showDetail(val)" href="javascript:;" style="flex: 1;">
                    <div class="imgBox">
                        <img :src="val.GWAM015 | goodsImgsUtils">
                    </div>
                    <div class="mui-media-body wf-price-color">
                        <h4>{{val.GWAML003}}</h4>
                        <div class="mui-card-footer">
                            <p class="wf-sfont-color">￥{{val.GWBK004 | priceFMT}}<span>/{{val.GWBK002|goodsUnits}}</span></p>
                            <div class="mui-numbox">
                                <button @tap.stop="minus(val)" class="mui-btn mui-numbox-btn-minus" type="button">-
                                </button>
                                <input v-model="val.GWBK003" class="mui-numbox-input" type="number"/>
                                <button @tap.stop="plus(val)" class="mui-btn mui-numbox-btn-plus" type="button">+
                                </button>
                            </div>
                        </div>
                    </div>
                </a>
            </div>
        </li>
    </ul>
</script>
</body>

</html>